import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  // 杠杆率趋势图获取
  postLeverageTrendChart: (query) => api.get(`${config.interfaces.type5}maat-report/v1/leverageAnalysis/runChartOfLeverageRatio`, query),
  // 保存标签设置
  saveLabelSet: (query) => api.post(`${config.interfaces.type5}maat-report/v1/leverageAnalysis/labelSettingConfirmation`, query),
  // 获取标签设置数据
  getLabelSetData: (query) => api.post(`${config.interfaces.type5}maat-report/v1/leverageAnalysis/leverageRatioLabelSetting`, query),
  // 杠杆率明细结果表
  leverageDetailResults: (query) => api.post(`${config.interfaces.type5}maat-report/v1/leverageAnalysis/detailedResultsOfLeverage`, query),
};
